Optimal. Leaf size=225 \[ -\frac{\sqrt{3} c^{2/3} \log \left (-\sqrt{3} \sqrt [3]{c} \sqrt [3]{c \cot (a+b x)}+(c \cot (a+b x))^{2/3}+c^{2/3}\right )}{4 b}+\frac{\sqrt{3} c^{2/3} \log \left (\sqrt{3} \sqrt [3]{c} \sqrt [3]{c \cot (a+b x)}+(c \cot (a+b x))^{2/3}+c^{2/3}\right )}{4 b}-\frac{c^{2/3} \tan ^{-1}\left (\frac{\sqrt [3]{c \cot (a+b x)}}{\sqrt [3]{c}}\right )}{b}+\frac{c^{2/3} \tan ^{-1}\left (\sqrt{3}-\frac{2 \sqrt [3]{c \cot (a+b x)}}{\sqrt [3]{c}}\right )}{2 b}-\frac{c^{2/3} \tan ^{-1}\left (\frac{2 \sqrt [3]{c \cot (a+b x)}}{\sqrt [3]{c}}+\sqrt{3}\right )}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.380465, antiderivative size = 225, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 8, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.667, Rules used = {3476, 329, 295, 634, 618, 204, 628, 203} \[ -\frac{\sqrt{3} c^{2/3} \log \left (-\sqrt{3} \sqrt [3]{c} \sqrt [3]{c \cot (a+b x)}+(c \cot (a+b x))^{2/3}+c^{2/3}\right )}{4 b}+\frac{\sqrt{3} c^{2/3} \log \left (\sqrt{3} \sqrt [3]{c} \sqrt [3]{c \cot (a+b x)}+(c \cot (a+b x))^{2/3}+c^{2/3}\right )}{4 b}-\frac{c^{2/3} \tan ^{-1}\left (\frac{\sqrt [3]{c \cot (a+b x)}}{\sqrt [3]{c}}\right )}{b}+\frac{c^{2/3} \tan ^{-1}\left (\sqrt{3}-\frac{2 \sqrt [3]{c \cot (a+b x)}}{\sqrt [3]{c}}\right )}{2 b}-\frac{c^{2/3} \tan ^{-1}\left (\frac{2 \sqrt [3]{c \cot (a+b x)}}{\sqrt [3]{c}}+\sqrt{3}\right )}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3476
Rule 329
Rule 295
Rule 634
Rule 618
Rule 204
Rule 628
Rule 203
Rubi steps
\begin{align*} \int (c \cot (a+b x))^{2/3} \, dx &=-\frac{c \operatorname{Subst}\left (\int \frac{x^{2/3}}{c^2+x^2} \, dx,x,c \cot (a+b x)\right )}{b}\\ &=-\frac{(3 c) \operatorname{Subst}\left (\int \frac{x^4}{c^2+x^6} \, dx,x,\sqrt [3]{c \cot (a+b x)}\right )}{b}\\ &=-\frac{c^{2/3} \operatorname{Subst}\left (\int \frac{-\frac{\sqrt [3]{c}}{2}+\frac{\sqrt{3} x}{2}}{c^{2/3}-\sqrt{3} \sqrt [3]{c} x+x^2} \, dx,x,\sqrt [3]{c \cot (a+b x)}\right )}{b}-\frac{c^{2/3} \operatorname{Subst}\left (\int \frac{-\frac{\sqrt [3]{c}}{2}-\frac{\sqrt{3} x}{2}}{c^{2/3}+\sqrt{3} \sqrt [3]{c} x+x^2} \, dx,x,\sqrt [3]{c \cot (a+b x)}\right )}{b}-\frac{c \operatorname{Subst}\left (\int \frac{1}{c^{2/3}+x^2} \, dx,x,\sqrt [3]{c \cot (a+b x)}\right )}{b}\\ &=-\frac{c^{2/3} \tan ^{-1}\left (\frac{\sqrt [3]{c \cot (a+b x)}}{\sqrt [3]{c}}\right )}{b}-\frac{\left (\sqrt{3} c^{2/3}\right ) \operatorname{Subst}\left (\int \frac{-\sqrt{3} \sqrt [3]{c}+2 x}{c^{2/3}-\sqrt{3} \sqrt [3]{c} x+x^2} \, dx,x,\sqrt [3]{c \cot (a+b x)}\right )}{4 b}+\frac{\left (\sqrt{3} c^{2/3}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{3} \sqrt [3]{c}+2 x}{c^{2/3}+\sqrt{3} \sqrt [3]{c} x+x^2} \, dx,x,\sqrt [3]{c \cot (a+b x)}\right )}{4 b}-\frac{c \operatorname{Subst}\left (\int \frac{1}{c^{2/3}-\sqrt{3} \sqrt [3]{c} x+x^2} \, dx,x,\sqrt [3]{c \cot (a+b x)}\right )}{4 b}-\frac{c \operatorname{Subst}\left (\int \frac{1}{c^{2/3}+\sqrt{3} \sqrt [3]{c} x+x^2} \, dx,x,\sqrt [3]{c \cot (a+b x)}\right )}{4 b}\\ &=-\frac{c^{2/3} \tan ^{-1}\left (\frac{\sqrt [3]{c \cot (a+b x)}}{\sqrt [3]{c}}\right )}{b}-\frac{\sqrt{3} c^{2/3} \log \left (c^{2/3}-\sqrt{3} \sqrt [3]{c} \sqrt [3]{c \cot (a+b x)}+(c \cot (a+b x))^{2/3}\right )}{4 b}+\frac{\sqrt{3} c^{2/3} \log \left (c^{2/3}+\sqrt{3} \sqrt [3]{c} \sqrt [3]{c \cot (a+b x)}+(c \cot (a+b x))^{2/3}\right )}{4 b}-\frac{c^{2/3} \operatorname{Subst}\left (\int \frac{1}{-\frac{1}{3}-x^2} \, dx,x,1-\frac{2 \sqrt [3]{c \cot (a+b x)}}{\sqrt{3} \sqrt [3]{c}}\right )}{2 \sqrt{3} b}+\frac{c^{2/3} \operatorname{Subst}\left (\int \frac{1}{-\frac{1}{3}-x^2} \, dx,x,1+\frac{2 \sqrt [3]{c \cot (a+b x)}}{\sqrt{3} \sqrt [3]{c}}\right )}{2 \sqrt{3} b}\\ &=-\frac{c^{2/3} \tan ^{-1}\left (\frac{\sqrt [3]{c \cot (a+b x)}}{\sqrt [3]{c}}\right )}{b}+\frac{c^{2/3} \tan ^{-1}\left (\frac{1}{3} \left (3 \sqrt{3}-\frac{6 \sqrt [3]{c \cot (a+b x)}}{\sqrt [3]{c}}\right )\right )}{2 b}-\frac{c^{2/3} \tan ^{-1}\left (\frac{1}{3} \left (3 \sqrt{3}+\frac{6 \sqrt [3]{c \cot (a+b x)}}{\sqrt [3]{c}}\right )\right )}{2 b}-\frac{\sqrt{3} c^{2/3} \log \left (c^{2/3}-\sqrt{3} \sqrt [3]{c} \sqrt [3]{c \cot (a+b x)}+(c \cot (a+b x))^{2/3}\right )}{4 b}+\frac{\sqrt{3} c^{2/3} \log \left (c^{2/3}+\sqrt{3} \sqrt [3]{c} \sqrt [3]{c \cot (a+b x)}+(c \cot (a+b x))^{2/3}\right )}{4 b}\\ \end{align*}
Mathematica [C] time = 0.047033, size = 40, normalized size = 0.18 \[ -\frac{3 (c \cot (a+b x))^{5/3} \text{Hypergeometric2F1}\left (\frac{5}{6},1,\frac{11}{6},-\cot ^2(a+b x)\right )}{5 b c} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.065, size = 203, normalized size = 0.9 \begin{align*} -{\frac{\sqrt{3}}{4\,bc} \left ({c}^{2} \right ) ^{{\frac{5}{6}}}\ln \left ( \left ( c\cot \left ( bx+a \right ) \right ) ^{{\frac{2}{3}}}-\sqrt{3}\sqrt [6]{{c}^{2}}\sqrt [3]{c\cot \left ( bx+a \right ) }+\sqrt [3]{{c}^{2}} \right ) }-{\frac{c}{2\,b}\arctan \left ( 2\,{\frac{\sqrt [3]{c\cot \left ( bx+a \right ) }}{\sqrt [6]{{c}^{2}}}}-\sqrt{3} \right ){\frac{1}{\sqrt [6]{{c}^{2}}}}}-{\frac{c}{b}\arctan \left ({\sqrt [3]{c\cot \left ( bx+a \right ) }{\frac{1}{\sqrt [6]{{c}^{2}}}}} \right ){\frac{1}{\sqrt [6]{{c}^{2}}}}}+{\frac{\sqrt{3}}{4\,bc} \left ({c}^{2} \right ) ^{{\frac{5}{6}}}\ln \left ( \left ( c\cot \left ( bx+a \right ) \right ) ^{{\frac{2}{3}}}+\sqrt{3}\sqrt [6]{{c}^{2}}\sqrt [3]{c\cot \left ( bx+a \right ) }+\sqrt [3]{{c}^{2}} \right ) }-{\frac{c}{2\,b}\arctan \left ( 2\,{\frac{\sqrt [3]{c\cot \left ( bx+a \right ) }}{\sqrt [6]{{c}^{2}}}}+\sqrt{3} \right ){\frac{1}{\sqrt [6]{{c}^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: UnboundLocalError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (c \cot{\left (a + b x \right )}\right )^{\frac{2}{3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (c \cot \left (b x + a\right )\right )^{\frac{2}{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]